import axios from 'axios'
export default {
  data() {
    return {
      loading: true,
    }
  },
  created() {
    this.getData()
  },
  methods: {
    async getData() {
      await this.sleep()
      const res = await axios.get('/api/list', { params: this.params })
      console.log('res:', res.data.data)
      this.loading = false
      this.total = res.data.data.total
      this.tableData = res.data.data.list
    },
  },
}
